<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link href="details.css" rel="stylesheet" type="text/css" />
<title>html5点击刷新验证码特效</title>
</head>
<body>

<div class="checkcode">
    <input type="text" id="J_codetext" placeholder="Type Here" maxlength="4">
    <canvas id="myCanvas" onclick="createCode()">
        抱歉！您的浏览器不支持html5
    </canvas>
</div>
<input type="button" value="验证" class="btn-code" onClick="validate();">

<script type="text/javascript" src="index.js"></script>

</body>
</html>